package nrrg.zhujuxing.application.learnscala

object funcitonAndMethod {
  def main(args: Array[String]): Unit = {
    def f1(str:String*):Unit = {
      println(str)
    }

    f1("alice")
    f1("bob", "catherine")

    def f2(str:String = "bb"): Unit = {
      println(str)
    }
    f2()

  }

}
